import CloudEngine.Math.Vector3 as Vector3
from typing import List


def calculate_polygon_center(vertexes: List[Vector3.Vector3]) -> Vector3.Vector3:
    sumX = 0
    sumY = 0
    sumZ = 0

    for i in vertexes:
        sumX += i.x
        sumY += i.y
        sumZ += i.z

    return Vector3.Vector3(sumX / len(vertexes), sumY / len(vertexes), sumZ / len(vertexes))
